public class Main1022 {
    public static void main(String[] args) {
       int z=100;
       int g=5;//5元
       int m=3;//3元
       int x=1;//1元3只
        int gj=0;
        int mj=0;
        for (int i=1;i<z-m-x;i++){
            gj=z-i*g;
            for (int j=1;j<(gj-1)/3;j++){
                mj=gj-j*3;
                if (i+j+mj*3==z){
                    System.out.println(i+" "+j+" "+3*mj);
                }
            }
        }
    }
}
